package com.xlink.repository;

import com.xlink.dto.Datapoint;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by jk on 2015/12/22.
 */
@Repository
public interface DatapointRepository {
     List<Map<String,Object>> list(@Param("datapoint") Datapoint datapoint);

     Integer add(@Param("datapoint") Datapoint datapoint);

     Integer delete(@Param("datapoint") Datapoint datapoint);

     Integer update(@Param("datapoint") Datapoint datapoint);

     Map<String,Object> get(@Param("datapoint") Datapoint datapoint);

     Map<String,Object> getnew(@Param("datapoint") Datapoint datapoint);

}
